17. During the hearing, the security of the persons present and the responsibility for the persons for whom detention has been ordered are ensured by a security officer or a constable, according to the terms and conditions agreed upon with the Ministère de la Sécurité publique.